/*
 *@Type Usage.java
 * @Desc
 * @Author urmsone urmsone@163.com
 * @date 2024/6/13 03:59
 * @version
 */
package example;

import com.alibaba.fastjson.JSONObject;
import model.command.Command;
import service.NormalStore;
import utils.CommandUtil;
import utils.RandomAccessFileUtil;

import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class StoreUsage {
    public static void main(String[] args) throws IOException {
        String dataDir="data"+ File.separator;
        NormalStore store = new NormalStore(dataDir);

        for (int i = 0; i < 1000; i++) {
            store.set("张三"+i,"123");
            store.set("李四"+i,"567");
        }
        store.close();
    }
}
